Groups containing only paths have transparent backgrounds